<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户详情</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .navbar { box-shadow: 0 2px 4px rgba(0,0,0,.1); }
        .detail-container { max-width: 600px; margin: 0 auto; }
        .footer { background-color: #f8f9fa; padding: 1rem 0; margin-top: 2rem; }
        .info-item { margin-bottom: 1.5rem; }
        .info-label { font-weight: bold; color: #6c757d; }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container">
            <a class="navbar-brand" href="/">
                <i class="bi bi-people-fill"></i> 用户管理系统
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" href="/user/list">
                            <i class="bi bi-list-ul"></i> 用户列表
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container mt-4">
        <div class="detail-container">
            <h2 class="mb-4">
                <i class="bi bi-person-circle"></i> 用户详情
            </h2>
            
            <div class="card">
                <div class="card-body">
                    <div class="info-item">
                        <div class="info-label">
                            <i class="bi bi-hash"></i> ID
                        </div>
                        <div class="mt-1">${user.id}</div>
                    </div>
                    
                    <div class="info-item">
                        <div class="info-label">
                            <i class="bi bi-person"></i> 用户名
                        </div>
                        <div class="mt-1">${user.username}</div>
                    </div>
                    
                    <div class="info-item">
                        <div class="info-label">
                            <i class="bi bi-envelope"></i> 邮箱
                        </div>
                        <div class="mt-1">${user.email}</div>
                    </div>
                    
                    <#if user.createTime??>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="bi bi-calendar-plus"></i> 创建时间
                        </div>
                        <div class="mt-1">${user.createTime?string('yyyy-MM-dd HH:mm:ss')}</div>
                    </div>
                    </#if>
                    
                    <#if user.updateTime??>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="bi bi-calendar-check"></i> 更新时间
                        </div>
                        <div class="mt-1">${user.updateTime?string('yyyy-MM-dd HH:mm:ss')}</div>
                    </div>
                    </#if>
                    
                    <div class="d-flex justify-content-between mt-4">
                        <a href="/user/list" class="btn btn-secondary">
                            <i class="bi bi-arrow-left"></i> 返回列表
                        </a>
                        <a href="/user/edit/${user.id}" class="btn btn-warning">
                            <i class="bi bi-pencil"></i> 编辑
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container text-center">
            <p class="mb-0">© 2024 用户管理系统. All rights reserved.</p>
        </div>
    </footer>
    <script src="/static/js/bootstrap.bundle.min.js"></script>
</body>
</html> 